<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th>平台</th>
            <th>风险等级</th>
            <th>收件人</th>
            <th>买家名</th>
            <th>买家姓</th>
            <th>邮编</th>
            <th>买家电话</th>
            <th>买家手机</th>
            <th>买家账号</th>
            <th>买家邮箱</th>
            <th>国家</th>
            <th>省/洲</th>
            <th>城市</th>
            <th>买过订单</th>
            <th>黑名单原因</th>
            <th>黑名单日期</th>
            <th>状态</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    {volist name="list" id="item"}
        <tr>
            <td>{$item.platform_name}</td>
            <td class="text-red">{$item.risk_num}</td>
            <td>{$item.consignee}</td>
            <td>{$item.buyer_first_name}</td>
            <td>{$item.buyer_last_name}</td>
            <td>{$item.buyer_post_code}</td>
            <td>{$item.buyer_phone}</td>
            <td>{$item.buyer_mobile}</td>
            <td>{$item.buyer_account}</td>
            <td>{$item.buyer_email}</td>
            <td>{$item.country.name_ch}</td>
            <td>{$item.buyer_province}</td>
            <td>{$item.buyer_city}</td>
            <td class="copy-text">{$item.order_no}</td>
            <td>{$item.reason}</td>
            <td>{$item.black_date}</td>
            <td>
                {php}$status = $item['status'];{/php}
                <a href="{:url('save',['black_id'=>$item['black_id'], 'status'=>abs(1-$status)])}" class="ajax-get" msg="0" style="font-size: 16px;">
                    {$status?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a>
            </td>
            <td class="text-left">{$item.remark}</td>
            <td><a href="{:url('add',['black_id'=>$item['black_id']])}"  width-form="50%" height-form="80%" class="layui-btn layui-btn-xs layui-btn-normal ajax-form" title="编辑黑名单">编辑</a>
                <a href="{:url('delete',['ids'=>$item['black_id']])}" title="删除" confirm="1" class="layui-btn layui-btn-xs layui-btn-danger ajax-get">删除</a> </td>
        </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="19">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>